﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace RentalSystem.Data.Base.Entities
{
    public class User
    {
        public string Guid { get; set; }
        public Person Person { get; set; }
        public UserRole Role { get; set; }
        public string Email { get; set; }
        public string PasswordHash { get; set; }
        public DateTime DateCreated { get; set; }
        public string DisplayName { get; set; }
        public IPAddress LastLoginIp { get; set; }
        public DateTime? LastLoginDate { get; set; }
        public bool IsNewsletterActive { get; set; }
        public bool IsAccountActive { get; set; }
        public Agency Agency { get; set; }

        public List<UserLog> UserLogs { get; set; }
        public List<Hire> Hires { get; set; }
        public List<Comment> Comments { get; set; }
        public List<Vote> Votes { get; set; }
        public Worker Worker { get; set; }

        public User()
        {
            UserLogs = new List<UserLog>();
            Hires = new List<Hire>();
            Comments = new List<Comment>();
            Votes = new List<Vote>();
        }
    }
}
